<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Swiper中文网基础演示(www.swiper.com.cn)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.2/css/swiper.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.2/js/swiper.min.js"></script>
<style>
* {
	margin: 0;
	padding: 0;
}
.blue-slide {
	background: #4390EE;
}
.red-slide {
	background: #CA4040;
}
.orange-slide {
	background: #FF8604;
}
.swiper-slide {
	line-height: 300px;
	color: #fff;
	font-size: 36px;
	text-align: center;
}
.swiper-container{
    width:500px;
    max-width: 100%;
}

.wrapper{
    width: 640px;
    margin: 0 auto;
    position: relative;
}
</style>
</head>
<body>
    <div class="wrapper">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide blue-slide">slider1</div>
                <div class="swiper-slide red-slide">slider2</div>
                <div class="swiper-slide orange-slide">slider3</div>
            </div>
        </div>
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>
    </div>
<script language="javascript"> 
    var mySwiper = new Swiper('.swiper-container',{
        loop: true,
	    autoplay: 3000,
        prevButton:'.swiper-button-prev',
        nextButton:'.swiper-button-next',
    })
</script>
</body>
</html>
